package com.example.recruitment_website.dto;


import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.io.Serializable;

@Entity
@Data
public class HeadlinesBriefDto implements Serializable {
    @Id
    private int id;
    private String title;
    private String img_url;
    private String date;
    private int type;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getImg_url() {
        return img_url;
    }

    public void setImg_url(String img_url) {
        this.img_url = img_url;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public HeadlinesBriefDto() {
    }

    public HeadlinesBriefDto(int id, String title, String img_url,String date) {
        this.id = id;
        this.title = title;
        this.img_url = img_url;
        this.date = date;
    }
}
